@echo off

setlocal enabledelayedexpansion
mode con lines=26
color 1f

call "E:\QGIS\bin\o4w_env.bat"
REM ogr2ogr -append -progress -s_srs EPSG:4490 -t_srs "+proj=lcc +ellps=GRS80 +lat_1=41.100000 +lat_2=44.100000 +lon_0=116.300000 +lat_0=38.100000 +x_0=439490.029496 +y_0=-12985.305371 +units=m +k=1.0" china.zj.gpkg china.gpkg

for /R "%cd%" %%i in (*.shp) do (
    echo %%~nxi
    ogr2ogr --config SHAPE_ENCODING GB18030 -progress -s_srs EPSG:4326 -t_srs "+proj=lcc +ellps=GRS80 +lat_1=39.500000 +lat_2=40.500000 +lon_0=116.000000 +lat_0=38.500000 +x_0=174506.374654 +y_0=-1957.852556 +units=m +k=1.0" maps %%~nxi
)

pause
